package creationalPattern.methodFactory;

public class NYPizzaStore extends PizzaStore{
    @Override
    Pizza createPizza(String item) {
        if (item.equals("veggie")) {
            return new NYStyleVeggiePizza();
        } else if (item.equals("clam")) {
            return new NYStyleClamPizza();
        } else return null;
    }
}
